package com.muh.operation;

import com.alibaba.fastjson.JSONArray;
import com.muh.entity.AggEmployee;
import org.springframework.data.domain.PageImpl;

import java.util.Map;

public interface AggEmployeeOperationService {

    /**
     * 分页 + 高亮
     * @param address
     * @param pageNumber
     * @param pageSize
     * @return
     */
    PageImpl<AggEmployee> findPageHighlightByAddress(String address, int pageNumber, int pageSize);

    /**
     * 聚合查询
     * @param address
     * @return
     */
    Map<String, Object> metricAggregation(String address);

    JSONArray bucketAggregation(String address);
}
